//
//  LocationView.m
//  LoveTravel
//
//  Created by MS on 16-1-26.
//  Copyright (c) 2016年 Lemon. All rights reserved.
//

#import "LocationView.h"

@interface LocationView ()
@property (weak, nonatomic) IBOutlet UILabel *titleView;
@property (weak, nonatomic) IBOutlet UILabel *subTitleView;

@property (weak, nonatomic) IBOutlet UIButton *mapView;

@end

@implementation LocationView

-(void)setProductData:(ProductDetailModel *)productData
{
    _productData = productData;
    _titleView.text = productData.destination;
    _subTitleView.text = productData.address;
}


+(instancetype)mapViewWithXib
{
    return [[[NSBundle mainBundle] loadNibNamed:NSStringFromClass([self class]) owner: nil options:nil] lastObject];
}

- (IBAction)mapBtnClick:(id)sender {
    
    NSLog(@"点击了地图");
}

@end
